package me.zfz.business.constant.enums;

/**
 * 学院类型 <br />
 * 学院	xy
 * 专业	zy
 *
 * @author author
 */
public enum OrgType {

    XY(1, "xy"), ZY(2, "zy");

    private int index;
    private String value;

    private OrgType(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public String getValue(int index) {
        String valueTmp = null;
        for (OrgType orgType : OrgType.values()) {
            if (orgType.getIndex() == index) {
                valueTmp = orgType.getValue();
                break;
            }
        }
        return valueTmp;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
